{template 'content', 'header'}
<!--main-->
<div id="boardbox">
     <div class="crumb">
          <b>当前位置：</b><a href="">首页</a>>><a href="index.php?m=courses&c=index&a=show&siteid={$siteid}" title="课程时间安排">课程时间安排</a>
    </div>
	<div class="leftside">
                <table id="searchform" class="searchform"  cellpadding="0" cellspacing="0" >
	        <form name="coursemyfrom" action="index.php?m=courses&c=index&a=show&siteid={$siteid}" method="get" enctype="multipart/form-data" >
	        <input name="m" type="hidden" value="courses" />
	        <input name="c" type="hidden" value="index" />
	        <input name="a" type="hidden" value="show" />
	        <input name="siteid" type="hidden" value="{$siteid}" />
                        <tr>
                             <td class="tdleft">选择课程：</td>
                             <td class="tdright">{form::select($this->courses, $_GET[csid], 'name="csid"', '请选择...')}</td>
                             <td class="tdleft">选择班级：</td>
                              <td class="tdright">{form::select($this->classes, $_GET[cid], 'name="cid"', '请选择...')}</td>
                              <td class="tdleft">时间段：</td>
                              <td class="timebox">{form::date('starttime', $_GET[starttime], 1)} - {form::date('endtime', $_GET[endtime], 1)}</td>
               <td class="sub"><input type="submit" name="dosubmit" class="submit" value="搜索" /></td></tr>	   </form>
	</table>

	<table class="listdata" cellpadding="0" border="0" cellspacing="0">
		<thead>
		<tr>
			<th width="100">课程</th>
			<th width="100">班级</th>
			<th width="150">上课时间</th>
			<th width="60">星期</th>
			<th>说明</th>
		</tr>
		</thead>
		<tbody>
		{if $return}
		{loop $return $v}
		<tr>
			<td>{$v[csname]}</td>
			<td>{$v[cname]}</td>
			<td>{$v[format_ctime]}</td>
			<td>{$v[format_week]}</td>
			<td>{$v[cnote]}</td>
		</tr>
		{/loop}
		{else}
		<tr>
			<td colspan="5">没有课程安排</td>
		</tr>
		{/if}
		</tbody>
	</table>
</div>
<div class="rightside">
<span class="hotboard">
						<h3><span class="sp_r"></span><span class="sp_l"></span>
                        <a href="index.php?m=content&c=index&a=lists&catid=122" class="title">网校新闻</a></h3>
						<span class="outerbox">
                        {pc:content  action="lists" catid="122" order="id DESC" num="5"}
						<ul>
                        {loop $data $v}
							<li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],60)}</a></li>
                            {/loop}
						</ul>
                        {/pc}
						</span>
					</span>					<span class="seboard">
						<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">
                        <a href="index.php?m=content&c=index&a=lists&catid=21">网校活动</a></span></h3>
						<span class="outerbox">
                        {pc:content action="lists" catid="21" order="id DESC" num="5"}
						<ul>
                        {loop $data $v}
							<li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],60)}</a></li>
                            {/loop}
						</ul>
                        {/pc}
						</span>
					</span>
</div>
	 <div id="pages"><?php echo $this->db->pages;?></div>
{template 'content', 'footer'}